#include <stdio.h>

int main() {
	float a = 0.0;
	float b = 0.0;
	float product = 0.0;
	
	double c = 0.0;
	double d = 0.0;
	double product2 = 0.0;
	
	scanf("%f%f", &a, &b);
	scanf("%lf%lf", &c, &d);

	product = a * b;
	product2 = c * d;

	printf("product = %f\n", product);
	printf("product2 = %lf\n", product2);

	return 0;
}
